package cn.diancan.Tags.freemarker;

import java.util.Map;
import java.util.Properties;

public class FreemarkerConfigSetting {
	
	private Properties freemarkerSettings;
	private Properties freemarkerStaticVariables;
	private Map<String, Object> freemarkerVariables;
	
	
	public Properties getFreemarkerSettings() {
		return freemarkerSettings;
	}

	public Map<String, Object> getFreemarkerVariables() {
		return freemarkerVariables;
	}

	public Properties getFreemarkerStaticVariables() {
		return freemarkerStaticVariables;
	}

	public void setFreemarkerStaticVariables(Properties freemarkerStaticVariables) {
		this.freemarkerStaticVariables = freemarkerStaticVariables;
	}

	/**
	 * Set properties that contain well-known FreeMarker keys which will be
	 * passed to FreeMarker's <code>Configuration.setSettings</code> method.
	 * @see freemarker.template.Configuration#setSettings
	 */
	public void setFreemarkerSettings(Properties settings) {
		this.freemarkerSettings = settings;
	}

	/**
	 * Set a Map that contains well-known FreeMarker objects which will be passed
	 * to FreeMarker's <code>Configuration.setAllSharedVariables()</code> method.
	 * @see freemarker.template.Configuration#setAllSharedVariables
	 */
	public void setFreemarkerVariables(Map<String, Object> variables) {
		this.freemarkerVariables = variables;
	}
}
